<div class="layui-side layui-bg-black">
	<div class="layui-side-scroll">
		<#include "/apps/business/xiaoe/include/left.html">
	</div>
</div>
<div class="layui-body">
	<div class="layui-side-scroll">
		<div class="row" style="height:100%;">
			<div class="col-lg-12">
				<h1 class="site-h1 layui-tab" style="border-top:1px solid #e6e6e6;height:26px;">
					<span class="ukefu-bt">
						<i class="layui-icon ukewo-btn" style="font-size:20px;"></i>
						<div class="ukefu-bt-text">
							<div class="ukefu-bt-text-title">
							用户提问历史
							</div>
						</div>
					</span>
					<span style="float:right;">
						<button class="layui-btn layui-btn-sm green" href="/apps/xiaoe/history/check.html?<#if tagget??>tagget=${tagget!''}<#elseif correct?? && correct>correct=${correct!''}<#elseif check?? && check>check=${check!''}<#elseif matchnum && matchnum==0>matchnum=${matchnum!''}</#if>" data-toggle="tip" data-title="是否测试该页面所有对话？">
							全部测试
						</button>
					</span>
					<div class="ukefu-tab-title" style="margin-right: 70px;">
						<ul class="tab-title">
							<li <#if !tagget?? && !correct?? && !correct && !matchnum?? && matchnum!=0>class="layui-this"</#if>><a href="/apps/xiaoe/history.html">访客对话历史消息</a></li>
							<li <#if tagget?? && tagget=='all'>class="layui-this"</#if>><a href="/apps/xiaoe/history.html?tagget=all">已标记</a></li>
							<li <#if tagget?? && tagget==1>class="layui-this"</#if>><a href="/apps/xiaoe/history.html?tagget=1">标记正确</a></li>
							<li <#if tagget?? && tagget==2>class="layui-this"</#if>><a href="/apps/xiaoe/history.html?tagget=2">标记错误</a></li>
							<li <#if correct?? && correct>class="layui-this"</#if>><a href="/apps/xiaoe/history.html?correct=1">匹配正确</a></li>
							<li <#if matchnum?? && matchnum==0>class="layui-this"</#if>><a href="/apps/xiaoe/history.html?matchnum=0">无匹配问题列表</a></li>
						</ul>
					</div>
				</h1>
				<#include "/apps/business/xiaoe/chat/chatlist.html">
			</div>	
		</div>
	</div>
</div>
<script>
	layui.use(['laypage', 'layer'], function(){
		  var laypage = layui.laypage
		  ,layer = layui.layer;
		  
		  laypage.render({
				elem: 'page'
				,pages: <#if historyList??>${historyList.totalPages}<#else>0</#if> //总页数
				,curr:<#if historyList??>${historyList.number+1}<#else>0</#if>
				,groups: 5 //连续显示分页数
				,jump:function(data , first){
					if(!first){
						location.href = "/apps/xiaoe/history.html?<#if tagget??>tagget=${tagget!''}<#elseif correct?? && correct>correct=${correct!''}<#elseif check?? && check>check=${check!''}<#elseif matchnum && matchnum==0>matchnum=${matchnum!''}</#if><#if q??>&q=${q?url}</#if><#if curtype??>&type=${curtype.id}&</#if>&p="+data.curr ;
					}
				}
		   });
		});
</script>